cmake_minimum_required(VERSION 3.16)
project(demo)

set(CMAKE_CXX_STANDARD 17)

find_package(OpenCV REQUIRED)
find_package(realsense2 REQUIRED)

add_executable(demo
    main.cpp
    videoPush.cpp
    videoPush.h
    test.h
    test.cpp
)

target_link_libraries(
    demo
    PUBLIC 
    ${OpenCV_LIBS} 
    ${realsense2_LIBRARY}
    avformat
    avcodec
    avutil
    avdevice
    swscale
)